package com.manager.devicemanager.common;

import lombok.Data;


public enum OperationTypeEnum {
    ADD("add","新增"),
    DELETE("delete","删除"),
    UPDATE("update","修改"),
    QUERY("query","查询"),
    AUTH("auth","授权"),
    CONTROL("control","设备控制");
    private String code;
    private String name;

    OperationTypeEnum(String code,String name) {
        this.code=code;
        this.name = name;
    }

    public String getName(){
        return  name;
    }
    public String getCode(){
        return code;
    }




}
